package cn.smxy.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@TableName("college")
public class College implements Serializable {
    private static final long serialVersionUID = -4492234209413101557L;

    @TableId(type = IdType.ASSIGN_ID,value = "college_id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long collegeId;

    @NotNull
    private Integer collegeCode;

    @NotBlank
    private String collegeName;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer numberLength;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String numberRegular;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long createTime;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long modifyTime;
}
